﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Brain.Animation;

namespace Brain.Skinning
{
    public class Frame_Skinned : IBaseKeyframe
    {
        public Frame_Skinned(int time, Matrix transform)
        {
            this.Time = time;
#if !MONOGAME
            transform.Decompose(out Scale, out Orientation, out Position);
#endif
        }
        public Frame_Skinned(int time, Vector3 trans, Vector3 sca, Quaternion orientation)
        {
            this.Time = time;

            this.Position = trans;
            this.Scale = sca;
            this.Orientation = orientation;
        }
        private Frame_Skinned()
        {
        }

        public Vector3 Position;
        public Vector3 Scale;
        public Quaternion Orientation;

        public int Time { get; set; }
    }
}
